package com.ocom.common.entity.payconfig;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "xf_meal_leave")
public class EntityXfMealLeave  implements Serializable {

    private static final long serialVersionUID = -2382242082575440224L;

    @TableId(type = IdType.AUTO)
    /**
     * 自增id，主键
     */
    private Integer id;

    /**
     * 单位编号
     */
    private Integer comId;

    /**
     * 人员id
     */
    @JsonProperty("pId")
    private Integer pId;

    /**
     * 人员编号
     */
    @JsonProperty("pCode")
    private String pCode;

    /**
     * 人员姓名
     */
    @JsonProperty("pName")
    private String pName;

    /**
     * 部门id
     */
    private Integer deptId;

    /**
     * 部门名称
     */
    @JsonProperty("deptName")
    private String deptName;

    /**
     * 餐段归属日期
     */
    private String mealDate;

    /**
     * 餐段编号（1-99）
     */
    private Integer mealNo;

    /**
     * 是否请假 0:未请假，1:请假
     */
    private Integer isLeave;

    /**
     * 数据库生成记录时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    public String getpCode() {
        return pCode;
    }

    public void setpCode(String pCode) {
        this.pCode = pCode;
    }

    public String getpName() {
        return pName;
    }

    public void setpName(String pName) {
        this.pName = pName;
    }
}
